﻿@model Lapkin.Models.DataModels.Category
@{
    if (ViewBag.ModelStatus != null)
    {
        @:<span id="category_model_status" data-status="@ViewBag.ModelStatus" style="display: none;"></span>
    }
}

@Html.HiddenFor(c => c.Id, new {id = "category_id_input"})
<div class="control-group">
    <label class="control-label" for="category_name_input"><strong>@Html.DisplayNameFor(c => c.Name)</strong></label>
    <div class="controls">
        @Html.TextBoxFor(c => c.Name, new {id = "category_name_input"}) 
        @Html.ValidationMessageFor(c => c.Name)
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="category_alias_input"><strong>@Html.DisplayNameFor(c => c.Alias)</strong></label>
    <div class="controls">
        @Html.TextBoxFor(c => c.Alias, new {id = "category_alias_input"})
        @Html.ValidationMessageFor(c => c.Alias)
    </div>
  </div>
<div class="control-group">
    <div class="controls">
        <button type="submit" class="btn btn-primary">Отправить</button>
    </div>
</div>